package src.lab03.test13;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

public class Test13 {
    public static void main(String[] args) {

        Connection connection=null;
        Statement statement=null;
        String sql = "insert into t_users(id,username,password) value(1 'A' '123')";
        try {
            Class.forName("com.mysql,jdbcDriver");
            connection= DriverManager.getConnection("jdbc:mysql://localhost:3306/sctu?serverTimezone=UTC",
                    "root",
                    "123456");
            try {
                statement = connection.createStatement();
            } catch (SQLException e) {
                e.printStackTrace();
            }
            statement.execute(sql);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}